from rest_framework import routers
from django.urls import re_path
from .views import *


urlpatterns = [
    re_path(r'^channels/$', ChannelsListView.as_view()),
    # re_path(r'^articles/search/$', ArticalViewSet.as_view({'get': 'list'})),
    # re_path(r'^articles/search/$', ArticlesListView.as_view()),
]


router = routers.SimpleRouter()

router.register(prefix='article', viewset=ArticleViewSet, base_name='article')

urlpatterns += router.urls

